<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<%@ taglib uri="/struts-nested" prefix="nested" %>
<%@ taglib uri="/terasoluna-struts" prefix="ts" %>
<%@ taglib uri="/terasoluna" prefix="t" %>
<%@ taglib uri="/terasoluna-library" prefix="tl" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String imagePath = basePath + "admin/images";
%>
<bean:define id="processInfos" name="buildingProjectForm" property="buildingProject.processInfos" type="java.util.List"></bean:define>
<html:html>
<head>
<link href="<%=path%>/admin/css/tcmsystem.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=path%>/admin/javascript/jquery-1.7.1.js"></script>
<script type="text/javascript" src="<%=path%>/admin/javascript/tcmsystem.js"></script>
<script type="text/javascript" src="<%=path%>/admin/javascript/calendar.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
	var index = <%=processInfos.size()%>;
	$("#addProcess").click(function () {
		addProcessRow(index);
		index++;
	});
	
});
</script>
</head>
<body>
<ts:form action="/saveBuildingProject.do" method="post">
<t:defineCodeList id="projectStatusCodeList"/>
<table width="60%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="<%=imagePath%>/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="<%=imagePath%>/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="<%=imagePath%>/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[园区企业]-[招商引资]</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="<%=imagePath%>/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="<%=imagePath%>/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">项目名称
            </td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <html:hidden property="buildingProject.projectId"/>
            <bean:write name="buildingProjectForm" property="buildingProject.projectName"/>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">单位名称</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <bean:write name="buildingProjectForm" property="buildingProject.investment"/>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">投资额</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <bean:write name="buildingProjectForm" property="buildingProject.amount"/>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">用地面积</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <bean:write name="buildingProjectForm" property="buildingProject.landArea"/>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">挂点领导</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <html:text property="buildingProject.handLeader" size="30"></html:text>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">挂点部门</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <html:text property="buildingProject.handDepart" size="30"></html:text>
            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">项目状态</td>
            <td width="80%" height="30" bgcolor="#FFFFFF" class="STYLE1">
            <html:select property="buildingProject.projectStatus">
                <html:options collection="projectStatusCodeList" property="id" labelProperty="name"/>
            </html:select>
            </td>
          </tr>
           <tr>
            <td width="20%" height="60" align="center" bgcolor="#FFFFFF" class="STYLE1">证照办理情况</td>
            <td width="80%" height="60" bgcolor="#FFFFFF" class="STYLE1">
            <html:textarea property="buildingProject.licenseInfo" styleClass="STYLE1" cols="40" rows="5"></html:textarea>
            </td>
          </tr>
          <tr>
            <td width="20%" height="80" align="center" bgcolor="#FFFFFF" class="STYLE1">工地现场建设进展情况</td>
            <td width="80%" height="80" bgcolor="#FFFFFF" class="STYLE1" valign="top">
              <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="b5d6e6" id="processtab">
	          <tr>
	            <td height="30" colspan="3" align="left"  bgcolor="#FFFFFF" class="noleftborder">
	            <input type="text" size="15" name="date" id="date" onclick="new Calendar().show(this);" readonly="readonly">
	            <input type="text" name="process" id="process">
	            <input type="button" id="addProcess" value="追加进展情况">
	            </td>
	          </tr>
	          <tr>
	            <td width="25%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">时间</td>
	            <td width="65%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">进展情况</td>
	            <td width="10%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">操作</td>
	          </tr>
	          <logic:iterate id="processInfo" name="processInfos" indexId="number">
	          <tr>
	            <td width="25%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">
	            <bean:define id="processDate" name="processInfo" property="processDate" type="java.lang.String"/>
	            <input type="hidden" name="buildingProject.processInfos[<%=number%>].processDate" value="<%=processDate%>">
	            <%=processDate%>
	            </td>
	            <td width="65%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">
	            <bean:define id="processInfo" name="processInfo" property="process" type="java.lang.String"/>
	            <input type="hidden" name="buildingProject.processInfos[<%=number%>].process" value="<%=processInfo%>">
	            <%=processInfo%>
	            </td>
	            <td width="10%" height="30" align="center" bgcolor="#FFFFFF" class="STYLE1">
	            <a href="#" class="del" onclick="delProcessRow($(this))">删除</a>
	            </td>
	          </tr>
	          </logic:iterate>
	          </table>
            </td>
          </tr>
          <tr>
            <td height="30" align="center" bgcolor="#FFFFFF" class="STYLE1" colspan="2">
            <html:submit value="更新"></html:submit>
            <input type="button" value="返回上一页" onclick="location.href='./buildingProjectList.do'">
            </td>
          </tr>
        </table></td>
        <td width="8" background="<%=imagePath%>/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="<%=imagePath%>/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="<%=imagePath%>/tab_18.gif" width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;</td>
            <td></td>
          </tr>
        </table></td>
        <td width="16"><img src="<%=imagePath%>/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</ts:form>
</body>
</html:html>
